package com.healthtop.dao;

import com.healthtop.dto.XsGameDetailsDto;
import com.healthtop.mapper.XsGameDetailsMapper;
import com.healthtop.model.XsGameDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public class XsGameDetailsDao {

    @Autowired
    private XsGameDetailsMapper xsGameDetailsMapper;

    public void insert(XsGameDetails xsGameDetails) {
        xsGameDetailsMapper.insertSelective(xsGameDetails);
    }

    public void update(XsGameDetails xsGameDetails) {
        xsGameDetailsMapper.updateByPrimaryKeySelective(xsGameDetails);
    }

    public XsGameDetails selectById(Long id) {
        return xsGameDetailsMapper.selectByPrimaryKey(id);
    }

}
